/**
 * 描述：
 * @Author rocklee
 * @mail liruoke@163.com
 * @Date 2020/06/18 10:59:52
 */
import fetch from '@/utils/fetch'

const ReviewApi = {
  getPageList (params) {
    return fetch({
      url: '/api/voReview/page',
      method: 'get',
      params: params
    })
  },
  review (id, data) {
    return fetch({
      url: '/api/voReview/' + id,
      method: 'put',
      data: data
    })
  },
  getRank (params) {
    return fetch({
      url: '/api/voReview/rank',
      method: 'get',
      params: params
    })
  },
  getRote (params) {
    return fetch({
      url: '/api/voReview/rote',
      method: 'get',
      params: params
    })
  },
  getDetail (id) {
    return fetch({
      url: '/api/voArea/' + id,
      method: 'get'
    })
  },
  add (data) {
    return fetch({
      url: '/api/voArea',
      method: 'post',
      data: data
    })
  },
  update (id, data) {
    return fetch({
      url: '/api/voArea/' + id,
      method: 'put',
      data: data
    })
  },
  del (data) {
    return fetch({
      url: '/api/voArea',
      method: 'delete',
      data: data
    })
  }
}
export default ReviewApi
